/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_goods_consignment_company.entity;

import java.sql.Date;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.modules.sys.entity.User;
import com.thinkgem.jeesite.modules.tb_areas.entity.TbAreas;

import javax.validation.constraints.NotNull;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 托运公司管理Entity
 * @author ZhangYangZe
 * @version 2017-05-15
 */
public class TbGoodsConsignmentCompany extends DataEntity<TbGoodsConsignmentCompany> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 托运公司全名
	private String shortName;		// 托运公司简称
	private String persion;		// 联系人
	private String tell;		// 联系电话
	private TbAreas tbAreaP;		// 省
	private TbAreas tbAreaC;		// 市
	private TbAreas tbAreaE;		// 区
	private String address;		// 详细地址
	private User createBy;		//创建者
	private User updateBy;      //更新者
	private Date createDate;    //创建时间
	private Date updateDate;    //更新时间 
	private String remarks;    //备注
	
	public User getCreateBy() {
		return createBy;
	}

	public void setCreateBy(User createBy) {
		this.createBy = createBy;
	}

	public User getUpdateBy() {
		return updateBy;
	}

	public void setUpdateBy(User updateBy) {
		this.updateBy = updateBy;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}
	
	public TbGoodsConsignmentCompany() {
		super();
	}

	public TbGoodsConsignmentCompany(String id){
		super(id);
	}

	@Length(min=1, max=60, message="托运公司全名长度必须介于 1 和 60 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=30, message="托运公司简称长度必须介于 1 和 30 之间")
	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	
	@Length(min=1, max=30, message="联系人长度必须介于 1 和 30 之间")
	public String getPersion() {
		return persion;
	}

	public void setPersion(String persion) {
		this.persion = persion;
	}
	
	@Length(min=1, max=11, message="联系电话长度必须介于 1 和 11 之间")
	public String getTell() {
		return tell;
	}

	public void setTell(String tell) {
		this.tell = tell;
	}
	
	@NotNull(message="省不能为空")
	public TbAreas getTbAreaP() {
		return tbAreaP;
	}

	public void setTbAreaP(TbAreas tbAreaP) {
		this.tbAreaP = tbAreaP;
	}
	
	@NotNull(message="市不能为空")
	public TbAreas getTbAreaC() {
		return tbAreaC;
	}

	public void setTbAreaC(TbAreas tbAreaC) {
		this.tbAreaC = tbAreaC;
	}
	
	@NotNull(message="区不能为空")
	public TbAreas getTbAreaE() {
		return tbAreaE;
	}

	public void setTbAreaE(TbAreas tbAreaE) {
		this.tbAreaE = tbAreaE;
	}
	
	@Length(min=1, max=155, message="详细地址长度必须介于 1 和 155 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
}